import Rrequest from '@/util/Rrequest'
// 用户授权
export async function getuser() {
	return Rrequest({
		url: '/boot/mass-oil/getUserLogin',
		method: 'get'
	})
}

// 油站列表
export async function oillist(data) {
	return Rrequest({
		url: '/boot/mass-oil/getGasListNear',
		method: 'post',
		data: data
	})
}

//获取电影相关城市
export async function filmgetCityLists() {
	return Rrequest({
		url: '/boot/film/getCityLists',
		method: 'get'
	})
}

// 获取影片列表
export async function getFilmList(data) {
	return Rrequest({
		url: '/boot/film/getFilmList/',
		method: 'post',
		data:data
	})
}

// 获取影院列表
export async function getCinema(data) {
	return Rrequest({
		url: '/boot/film/getCinema',
		method: 'post',
		data: data
	})
}

// 获取影院列表
export async function getCinemadetail(id) {
	return Rrequest({
		url: '/boot/film/getCinema/detail/'+id,
		method: 'get',
	})
}

 
//获取实时座位图
export async function getPlanSeat(data) {
	return Rrequest({
		url: '/boot/film/getPlanSeat',
		method: 'post',
		data: data
	})
}

//获取实时座位图
export async function getPlanDetail(data) {
	return Rrequest({
		url: '/boot/film/getPlanDetail',
		method: 'post',
		data: data
	})
}

// 锁坐 
export async function lockSeat(data) {
	return Rrequest({
		url: '/boot/film/lockSeat',
		method: 'post',
		data: data
	})
}

// 影院获取城市定位 
export async function filmlocal(data) {
	return Rrequest({
		url: '/boot/film/local',
		method: 'post',
		data: data
	})
}

//确认选座
export async function filmorder(data) {
	return Rrequest({
		url: '/film/order',
		method: 'post',
		data: data
	})
}

//电影选座订单信息
export async function filmorderdetailid(data) {
	return Rrequest({
		url: '/film/order/detail/' + data,
		method: 'get'
	})
}

//电影票余额支付
export async function filmbalance(data) {
	return Rrequest({
		url: '/film/order/pay/balance',
		method: 'post',
		data: data
	})
}

//电影票余额支付
export async function filmali(data) {
	return Rrequest({
		url: '/film/order/pay/ali',
		method: 'post',
		data: data
	})
}

//电影票余额支付
export async function filmweixin(data) {
	return Rrequest({
		url: '/film/order/pay/weixin',
		method: 'post',
		data: data
	})
}

//电影历史订单 
export async function filmorderlist(data) {
	return Rrequest({
		url: '/film/order/list',
		method: 'post',
		data: data
	})
}

//查询电影折扣 
export async function filmdiscount() {
	return Rrequest({
		url: '/film/order/discount',
		method: 'get'
	})
}